package com.cqcetbbs.smartlab.cqcetbbs.utils;

import android.graphics.Color;
import android.view.View;
import android.widget.TextView;

import com.androidadvance.topsnackbar.TSnackbar;

/**
 * Created by user on 2017/10/10.
 */

public class MySnackbar {
    public static void ShowSnackbar(View view, String content) {
        TSnackbar snackbar = TSnackbar.make(view, content, TSnackbar.LENGTH_SHORT);
        View snackbarView = snackbar.getView();
        snackbar.setActionTextColor(Color.WHITE);
        snackbarView.setBackgroundColor(Color.parseColor("#5CACEE"));
        TextView textView = (TextView) snackbarView.findViewById(com.androidadvance.topsnackbar.R.id.snackbar_text);
        textView.setTextColor(Color.WHITE);
        snackbar.show();
    }


}
